---@class MahjongUtility
local MJ = {}

MJ.Wind = {
  East = 0,
  South = 1,
  West = 2,
  North = 3,
}

--- 按万-条-筒-字给一些牌排序
MJ.SortCards = function (cards)
  table.sort(cards, function (a, b)
    if a.suit == b.suit then
      return a.number < b.number
    elseif a.suit ~= "z" and b.suit ~= "z" then
      return a.suit < b.suit
    else
      return a.suit == "z"
    end
  end)
end

return MJ
